@echo off
echo Installing...
echo=

python -m pip install numpy -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

where.exe python>path.txt
for /f "delims=" %%a in (path.txt) do (
  set patha=%%a
)
for /f %%a in ("%patha%") do (
set pathb=%%~dpa
)
set "pathc=Lib\site-packages\"
set pathd=%pathb%%pathc%
echo Python path %pathd%
del path.txt
copy %~dp0\lib\cv2.pyd %pathd%

echo=
pause